from lxml import etree

content = """<bookstore>
    <book>
      <title lang="eng">Harry Potter</title>
      <price>29.99</price>
    </book>
    <book>
      <title lang="eng">Learning XML</title>
      <price>39.95</price>
    </book>
</bookstore>
"""
tree = etree.XML(content)
books = tree.xpath('/bookstore/book[price>35.00]/title')
for book in books:
    print(book.text)
